package org.simple.learning.spring.boot.mongo.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
import java.util.Date;

/**
 * 项目名称：spring-boot-leaning
 * 类名称：User
 * 类描述：User
 * 创建时间：2018/9/4
 *
 * @author guihuo   (E-mail:1620657419@qq.com)
 * @version v1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Document
public class User implements Serializable {

    private static final long serialVersionUID = 7679232341075154050L;

    @Id
    private String id;

    private String username;

    private String password;

    private Date createDate = new Date();

}
